 @PostMapping("/downDetailTemp")
    public void downDetailTemp(@RequestBody SettleExportDto.Input param, HttpServletResponse response){

        if (StringUtils.isEmpty(param.getType())) {
            throw new AppException("500","参数类型不能为空！");
        }
        List<List<String>> headList=new ArrayList<>();
        List<String> head1=new ArrayList<>();

        List<List<String>> infoList=new ArrayList<>();
        if (param.getType().equals("cus")) {
            head1.add("销售订单号");
        }else if (param.getType().equals("sup")){
            head1.add("服务订单号");
        }else{
            throw new AppException("500","类型不对，必须是cus 或者 sup！");
        }
        List<String> head2=new ArrayList<>();
        head2.add("单价");
        headList.add(head1);
        headList.add(head2);


        List<String> info1=new ArrayList<>();
//        info1.add("必填");
//
//        info1.add("必填，最多支持4位小数");
//        infoList.add(info1);
        ExcelUtil.exportDynamicFieldExcel(
                headList,
                infoList,
                "订正文件_对账单前",
                "订正文件_对账单前",
                "订正文件_对账单前模板",
                response
        );
    }


    /**
     * 下载价格配置模板
     * @param param
     * @param response
     */
    @PostMapping("/downConfigPriceTemp")
    public void downConfigPriceTemp(@RequestBody SettleExportDto.Input param, HttpServletResponse response){
        if (StringUtils.isEmpty(param.getType())) {
            throw new AppException("500","参数类型不能为空！");
        }
        List<List<String>> headList=new ArrayList<>();
        List<String> titles = Arrays.asList("网点编码","客户项目编码","采购协议编码","单价","币种");

        for (String title : titles) {
            List<String> head=new ArrayList<>();
            head.add(title);
            headList.add(head);
        }
        List<List<String>> infoList=new ArrayList<>();
        List<String> info=new ArrayList<>();
//        info.add("必填");
//        if (param.getType().equals("cus")) {
//            info.add("非必填为空认为是all");
//            info.add("必填");
//        }else{
//            info.add("必填");
//            info.add("非必填为空认为是all");
//        }
//
//        info.add("必填，最多支持4位小数");
//        info.add("必填（币种是code，如CNY、USD等）");
//        infoList.add(info);

        ExcelUtil.exportDynamicFieldExcel(
                headList,
                infoList,
                "价格配置文件",
                "价格配置文件",
                "价格配置文件",
                response
        );
    }